Building a Server Dashboard Application with ColdFusion-Powered Flex
Table of Contents
Where To Use Flex
ColdFusion developers can think of Flex as being a replacement or an extension for the parts of the application that they would have written in HTML, JavaScript, DHTML, and so forth. But that does not mean that you should write every HTML application in Flex. In fact, while some applications are great potential Flex candidates, others are decidedly not.
- Flex is not intended to be used to replace specific form controls. For example, if you have an HTML form and use a pop-up calendar, do not replace the calendar with Flex code. The cost, the overhead, the bandwidth usage—none of those factors would make Flex an efficient option. Using Flex for whole parts of a form probably does not make sense. However, if you have a complex multipart form with lots of screens, form controls, and dynamic elements, then yes, Flex could be a good candidate.
- Applications involving raw reporting, data browsing, or working with large amounts of data—where the emphasis is less on the presentation and more on raw content—are also not Flex's sweet spot. While Flex provides controls, such as the data grid, that you can use within these applications, the overhead, performance, and amount of coding needed may make not be a fit for Flex.
- Flex is not designed to replace Flash. If you use Flash for complex animation or sophisticated design work, you'll still use Flash.
- Where Flex shines is in rich presentation of information, with an emphasis on "rich." Dashboard type applications are perfect for Flex, as are innovating ways to display and interact with specific data, such as shopping carts.
Of course, these are high-level generalizations, and there is no hard-and-fast rule here. The key is that Flex empowers developers to build rich and highly interactive user experiences. It is best suited for applications where this type of interaction is a requirement and where the project plan can accommodate the overhead associated with this type of experience.